#ifndef _CTELEPORTER_H_
#define _CTELEPORTER_H_

#include "CBase.h"
class CNode;

class CTeleporter : public CBase
{
	bool isNodePlayerOwned; // true if the player owns the node that this teleporter is in
	bool isOpen;			// true if the teleporter is open.
	CTeleporter* link;		// pointer to the teleporter linked to this teleporter
	CNode* node;			// pointer to the node that this teleporter is in.

public:
	CTeleporter();
	bool GetPOwned() {return isNodePlayerOwned;}
	bool GetIsOpen() {return isOpen;}
	void SetIsOpen(bool open) {isOpen = open;}
	void Activate();
	void DeActivate();
	void Teleport();
	void Render();
	CTeleporter* getLink() {return link;}
	CNode* getNode() {return node;}
	void setLink(CTeleporter* linked);
	void setNode(CNode* parent);

};

#endif